package com.zhouyu;

import com.spring.ZhouyuApplicationContext;
import com.zhouyu.service.OrderService;
import com.zhouyu.service.UserService;
import com.zhouyu.service.UserServiceImpl;

/**
 * @author xuxin
 * @create 2024-10-08 22:29
 */
public class Test {
    public static void main(String[] args) throws Exception {
        ZhouyuApplicationContext context = new ZhouyuApplicationContext(AppConfig.class);

        UserService userService = (UserService) context.getBean("userService");
        userService.test();

        OrderService orderService = (OrderService) context.getBean("orderService");
        orderService.test();

    }
}
